home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / archiver / zlab_19c.zip / GIFT4B10.ZIP / PCBTEST.BAT < prev    next >
DOS Batch File  |  1992-01-22  |  1KB  |  49 lines

  1. @echo off
  2. if exist pcbpass.txt del pcbpass.txt
  3. if exist pcbfail.txt del pcbfail.txt
  4. rem if %@ext[%1]==gif goto gif          <-- 4DOS commands, faster than TESTFILE
  5. rem if %@ext[%1]==zip goto zip          <-- 4DOS commands, faster than TESTFILE
  6. testfile gif zip
  7. if errorlevel == 2 goto gif
  8. if errorlevel == 1 goto zip
  9. goto crc
  10.  
  11. :gif
  12. if %2 == test goto gift
  13. giftest %1 /B:2/F:%3 > PCBPASS.TXT
  14. if errorlevel == 25 goto badgif
  15. if errorlevel == 20 goto badgif
  16. if errorlevel == 10 goto end
  17. if errorlevel == 1 goto badgif
  18. goto end
  19.  
  20. :gift
  21. echo Testing GIF file...
  22. > PCBPASS.TXT
  23. giftest %1 /E/B:2/F:%3
  24. if not exist %1 goto badgif
  25. goto end
  26.  
  27. :badgif
  28. move PCBPASS.TXT PCBFAIL.TXT /Q
  29. goto end
  30.  
  31. :zip
  32. ptest %1 ptest.cfg
  33. if %2 == test goto end
  34. if exist pcbfail.txt goto end
  35.  
  36. pcbdiz %1 %3 /AV/D/U
  37.  
  38. :crc
  39. if exist pcbpass.txt del pcbpass.txt
  40. rem proecho 1 ~Adding %@name[%1] to CRC database...
  41. zdcsfc %1 %2 %3
  42. goto end
  43.  
  44. :end
  45. if exist PCBPASS.TXT type PCBPASS.TXT >> f:\pcb\PCBPASS.LOG
  46. if exist PCBFAIL.TXT type PCBFAIL.TXT >> f:\pcb\PCBFAIL.LOG
  47. if exist PCBFAIL.TXT move %1 h:\hold /q
  48. if exist %3 type %3 >> f:\pcb\desc
  49.